//
//  XHF_AppointmentTV.m
//  haojia
//
//  Created by 徐宏飞 on 16/4/15.
//  Copyright © 2016年 徐宏飞. All rights reserved.
//

#import "XHF_AppointmentTV.h"

@interface XHF_AppointmentTV ()<UITableViewDataSource, UITableViewDelegate>

@end


@implementation XHF_AppointmentTV

+(XHF_AppointmentTV *)AppointmentTableView{
    XHF_AppointmentTV *appiontmentTV = [[XHF_AppointmentTV alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];
    appiontmentTV.delegate = appiontmentTV;
    appiontmentTV.dataSource = appiontmentTV;
    
    [appiontmentTV registerClass:[UITableViewCell class] forCellReuseIdentifier:@"appiontmentTVC"];
    
    return appiontmentTV;
    
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 50;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{

    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"appiontmentTVC"];
    

    cell.textLabel.text = [NSString stringWithFormat:@"%ld", (long)indexPath.row];
    return cell;
}



@end
